<%--
    Document   : prueba
    Created on : Jan 13, 2011, 9:38:51 PM
    Author     : isak
--%>

<%@ taglib prefix="s" uri="/struts-tags"%>

<html>
    <head>

        <script src="js/jquery.validate.js" type="text/javascript"></script>

        <script src="js/jquery.js" type="text/javascript"></script>

        <script type="text/javascript" src="js/jquery.alerts.js"></script>

        <script type="text/javascript" src="js/jquery.ui.draggable.js"></script>


        <script type="text/javascript">
            $(document).ready(function(){
                $.getJSON( 'laLista.action',
                function(json)
                {
                    itemsHtml = "<table >";
                    for (i in json.solicitudesAmistad)
                    {
                        itemsHtml += "<tr>";
                        itemsHtml += "<td><h3>" + json.solicitudesAmistad[i][0] + "</h3></td>";
                        itemsHtml += "<td><h3>" + json.solicitudesAmistad[i][1] + "</h3></td>";
                        itemsHtml += "<td><h3>" + json.solicitudesAmistad[i][2] + "</h3></td>";
                        itemsHtml += "<td><h3>" + json.solicitudesAmistad[i][3] + "</h3></td>";
                        itemsHtml += "</tr>";
                    }
        
                    itemsHtml += "</table>";
                    $('#prueba').html(itemsHtml);
                });
                return false; });

        </script>
    </head>
    <body>

        <div id="prueba" >
          div 100
        </div>

    </body>
</html>